package com.imrookie.gendoc.db;

import com.imrookie.gendoc.db.service.DBGenService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;


/**
 * @author wangjiyu@imdada.cn 2019/8/9
 */
@SpringBootApplication
public class GenDocApplication {


    public static void main(String[] args) throws Exception {
        ConfigurableApplicationContext configurableApplicationContext = SpringApplication.run(GenDocApplication.class, args);
        DBGenService dbGenService = configurableApplicationContext.getBean(DBGenService.class);
        dbGenService.genWord("C:\\Users\\zhouhuawei\\Desktop\\数据库文档2.doc", "card");//参数1是文档保存地址,参数2是表名(为null表示生成所有表的文档)
        System.out.println("完成");
    }

}
